﻿using UnityEngine;
using System.Collections;

public class ProjectileScript : MonoBehaviour {

	public bool Started = false;
	public float LiveTime = 2.0f;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
		if (this.Started) {
			if (LiveTime > 0f) {
				LiveTime -= Time.deltaTime;
			}
			else {
				GameObject.Destroy(this.gameObject);
			}
		}
	}
}
